
<link href="/stylesheets/awesome-form.css" rel="stylesheet" type="text/css" media="all" />
<link href="/stylesheets/base.css" rel="stylesheet" type="text/css" media="all" />
<div id="family-box">
<%
 @group.errors.each do |x,y|
   writeline "<font color=red>Error: #{x}, #{y}</font><br/>"
 end
%>

<h1>Edit <span class="highlit"> <%=@group.title%></span></h1>
<span class="mediumbold"><p>Use this form to edit the details of your group (family?), such as changing the name, adding a picture, etc..</p></span>
	<form class="awesome" method="post" action="" enctype="multipart/form-data">
		<input type="hidden" name="id" id="id" value="<%=@group.id%>" />
		<input type="hidden" name="submit" id="submit" value="submit" />
		
		<!--
		<label for="name">Unique identifier </label>
		<input type="text" name="uid" id="uid" value="<%=@group.uid%>" />
		<br/>
		-->
		
		<label for="title">Display Name </label>
		<input type="text" name="title" id="title" value="<%=@group.title%>" />
		<br/>
		
		<label for="description">Description </label>
		<textarea rows="4" cols="45" id="description" name="description"><%=@group.description%></textarea>
		<br/>
		
		<!--
		<label for="keywords">Keywords </label>
		<input type="text" name="tagstring" id="tagstring" value="<%=@group.tagstring%>" />
<br/>
		-->
		
		<label for="image">Group picture </label>
		<input type="file" name="depiction" id="depiction" />
<br/>
	
		<label for="selectMultiple">Type of group</label>
		<select name="role" id="role">
			<option>family</option>
			<option>friends</option>
			<option>school</option>
			<option>social group</option>
		</select>
		<br>

<input type="submit" value="submit" />
	
	</form>

	</div>